<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>order属性</title>
  <style>
    .d {
      width: 100%;
      height: 200px;
      background-color: orange;
      display: flex;
    }
    .d1,.d2,.d3 {
      width: 200px;
      height: 100px;
      background-color: lightblue;
      margin-right: 5px;
      margin-bottom: 5px;
    }
    .d3 {
      /*指定flex-item项（小盒子）的顺序*/
      order: -1;
    }
  </style>
</head>
<body>
<div class="d">
  <div class="d1">d1</div>
  <div class="d2">d2</div>
  <div class="d3">d3</div>
</div>
</body>
</html>
